'use strict';

const Controller = require('egg').Controller;

class DetailController extends Controller {
    async index() {
        const{ctx} = this
        const {id} = ctx.query
        const res = await ctx.service.movie.getMovieDetailOrSearch({id:id})
        ctx.body={
            msg:"电影详情",
            res
        }
    }
}

module.exports = DetailController;